<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class ShopDianpingPics extends Model
{

    protected $table = 'shop_dianping_pics';

    public $timestamps = false;

    protected $primaryKey = 'pic_id';

    protected $fillable = [
        'pic_id',
        'shop_id',
        'dianping_id',
        'pic',
        'pic_oss',
    ];

    public function shop()
    {
        return $this->hasOne('App\\Models\\Shop', 'shop_id', 'shop_id');
    }
}
